
import http from './http'

//查询系统角色所有权限
export function queryPermissionTree(params){
	return http.get('/auth/query-permission-tree',{params})
}
//获取所有角色
export function queryRoleList(params){
	return http.get('/auth/role-list',{params})
}
//添加角色
export function addRole(params){
	return http.post('/auth/add-role-permissions',params)
}
//编辑角色
export function editRole(params){
	return http.post('/auth/edit-role-permissions',params)
}
//获取角色的权限
export function getRolePermission(params){
	return http.get('/auth/query-role-permissions',{params})
}
